<template>
	<view class="energy">
		<view class="close" @click="$emit('close')">
			<image :src="`${baseImageUrl}/common/close1.png`"></image>
		</view>
		<view class="title">
			<view>补充能量</view>
		</view>
		<view class="content">
			<view class="cover">
				<image :src="`${baseImageUrl}/home/p1.png`"></image>
			</view>
			<view class="key">能量药水</view>
			<view class="value">说明:补充生命值50点</view>
		</view>
		<view class="btn" @click="submit">补充</view>
	</view>
</template>

<script>
	import {
		orderProp
	} from '@/request/api.js';
	export default {
		data() {
			return {
				list: [],
			}
		},
		created() {
			this.getList()
		},
		methods: {
			async getList() {
				await orderProp({
					prop_type: 1,
					page: this.page,
					limit: this.limit
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.energy {
		width: 688rpx;
		height: 606rpx;
		padding: 46rpx 0rpx 60rpx;
		box-sizing: border-box;
		background: url(#{$baseImageUrl}/bg/688_606.png) no-repeat;
		background-size: 100% 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		position: relative;

		.close {
			width: 122rpx;
			height: 122rpx;
			position: absolute;
			right: 0rpx;
			top: 0rpx;
			transform: translate(50rpx, -50rpx);
			z-index: 2;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.title {
			display: flex;
			justify-content: center;
			align-items: center;

			view {
				width: 256rpx;
				height: 30rpx;
				line-height: 30rpx;
				text-align: center;
				color: #494338;
				font-size: 42rpx;
				font-weight: 400;
				font-family: LiSu;
				background: url(#{$baseImageUrl}/home/title.png) no-repeat;
				background-size: 100% 100%;
			}
		}

		.content {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;

			.cover {
				width: 210rpx;
				height: 210rpx;
				background: url(#{$baseImageUrl}/common/add_bg.png) no-repeat;
				background-size: 100% 100%;
				display: flex;
				justify-content: center;
				align-items: center;

				image {
					width: 200rpx;
					height: 200rpx;
				}
			}

			.key {
				color: #494338;
				font-size: 32rpx;
				font-weight: 400;
				font-family: SimSun;
				margin: 20rpx 0;
			}

			.value {
				color: #494338;
				font-size: 32rpx;
				font-weight: 400;
				font-family: SimSun;
			}
		}

		.btn {
			width: 204rpx;
			height: 74rpx;
			line-height: 74rpx;
			text-align: center;
			color: #FFFFFF;
			font-size: 30rpx;
			font-weight: 400;
			font-family: SimSun;
			background: url(#{$baseImageUrl}/common/btn.png) no-repeat;
			background-size: 100% 100%;
		}
	}
</style>